package com.gzz.mapper;

import com.gzz.pojo.TicketOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 周佳成
 * @since 2023-11-20
 */
@Mapper
public interface TicketOrderMapper extends BaseMapper<TicketOrder> {
    @Select("select sc_id  from ticket_order order by sum(num) desc limit 4")
    public List<Long> getTopFour();
}
